execute as @e[type=marker,tag=wind_electricity_producer] at @s store result score @s advm_power_cost run data get entity @s Pos[1]
execute as @e[type=marker,tag=wind_electricity_producer] at @s run scoreboard players operation @s advm_power_cost /= @s advm_power_max
execute as @e[type=marker,tag=wind_electricity_producer] at @s run scoreboard players operation @s advm_power += @s advm_power_cost

schedule function advm:machines/wind_electricity_producer_keep 1s


